package org.xwb.runtimeMemory;

public class StackOverFlowError {
    private static int count = 0;
    public static void main(String[] args) {
        try {
            // jps
            // jinfo -flag ThreadStackSize pid
//            Thread.sleep(1000);
            count++;
            main(args);
        } catch (Throwable e) {
            System.out.println(count);
//            System.out.println("Stack size: " + ManagementFactory.getRuntimeMXBean().getInputArguments());
        }
    }
}
